

public class Method {
	
	/**
	 * 
	 * @author Daniel
	 * 
	 *	modul de acces la metoda: PRIVATE , PUBLIC , PROTECTED, DEFAULT
	 */
	public enum AccessModifier{
		PRIVATE , PUBLIC , PROTECTED, DEFAULT;
	}
	
	/**
	 * numele metodei
	 */
	private String name;
	
	/**
	 * tipul de acces la metoda
	 * 
	 * @see AccessModifier
	 */
	private AccessModifier access;
	
	/**
	 * tipul metodei
	 * 
	 * @see PrimitiveType
	 */
	private PrimitiveType type;
	
	
	public Method() {
		super();
	}
	public Method(String name, AccessModifier access, PrimitiveType type) {
		super();
		this.name = name;
		this.access = access;
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public AccessModifier getAccess() {
		return access;
	}
	public void setAccess(AccessModifier access) {
		this.access = access;
	}
	public PrimitiveType getType() {
		return type;
	}
	public void setType(PrimitiveType type) {
		this.type = type;
	}
	@Override
	public String toString() {
		return "Method [name=" + name + ", access=" + access + ", type=" + type
				+ "]";
	}
	
}
